#!/bin/sh
+C=debian/tests/control
+
# Remove debian/tests/control
-rm -f debian/tests/control
+rm -f $C
# Create the basic (import) test for Python 3 modules
for binary_package in $(dh_listpackages|grep "python3-pyside6.qt"); do
python3,
$binary_package,
Restrictions: allow-stderr, superficial
-Features: test-name=$binary_package" >>debian/tests/control
+Features: test-name=$binary_package" >> $C
architecture=$(sed -n "/^Package: ${binary_package}$/{n; p}" debian/control)
if [ "$architecture" != 'Architecture: any' ]; then
- echo "$architecture" >>debian/tests/control
+ echo "$architecture" >> $C
fi
- echo "" >>debian/tests/control
+ echo "" >> $C
done
-sed -i '$d' debian/tests/control
+sed -i '$d' $C